/*
 * File Name：ApkUpdateInfo.java
 * Copyright：Copyright 2008-2013 CiWong.Inc. All Rights Reserved.
 * Description： ApkUpdateInfo.java
 * Modify By：bin
 * Modify Date：2013-4-23
 * Modify Type：Add
 */
package com.ciwong.mobilelib.bean;

import java.util.Arrays;

/**
 * 应用更新信息
 *
 * @author bin
 * @version ciwong v.1.0 2013-4-23
 * @since ciwong v.1.0
 */
public class ApkUpdateInfo extends BaseBean {
    //private static final long serialVersionUID = -3635942794187260818L;
    private int versionCode;// 版本号

    private String versionName;// 版本名称

    private int minVersionCode;// 允许运行的最低版本号

    private int frequency;//更新周期(当用户点击不在更新后,提示用户再次更新的周期)天

    private int showTips;//提示升级

    private String[] updateInfos;// 更新信息

    private String downloadUrl;// 下载地址

    private String fileName;// 应用文件名

    public int getFrequency() {
        return frequency;
    }

    public void setFrequency(int frequency) {
        this.frequency = frequency;
    }

    public int getVersionCode() {
        return versionCode;
    }

    public void setVersionCode(int versionCode) {
        this.versionCode = versionCode;
    }

    public String getVersionName() {
        return versionName;
    }

    public void setVersionName(String versionName) {
        this.versionName = versionName;
    }

    public int getMinVersionCode() {
        return minVersionCode;
    }

    public void setMinVersionCode(int minVersionCode) {
        this.minVersionCode = minVersionCode;
    }

    public String[] getUpdateInfos() {
        return updateInfos;
    }

    public void setUpdateInfos(String[] updateInfos) {
        this.updateInfos = updateInfos;
    }

    public String getDownloadUrl() {
        return downloadUrl;
    }

    public void setDownloadUrl(String downloadUrl) {
        this.downloadUrl = downloadUrl;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public int getShowTips() {
        return showTips;
    }

    public void setShowTips(int showTips) {
        this.showTips = showTips;
    }

    @Override
    public String toString() {
        return "ApkUpdateInfo{" +
                "versionCode=" + versionCode +
                ", versionName='" + versionName + '\'' +
                ", minVersionCode=" + minVersionCode +
                ", frequency=" + frequency +
                ", showTips=" + showTips +
                ", updateInfos=" + Arrays.toString(updateInfos) +
                ", downloadUrl='" + downloadUrl + '\'' +
                ", fileName='" + fileName + '\'' +
                '}';
    }
}
